Chosen Solution

After updating the tablet to android 12, everytime I plug in a charger, a notification pops up saying “USB connector connected/disconnected” it keeps popping up every second and the device won’t charge. I am using an original Samsung Charger

I replaced now the USB charge unit and the battery. Both replacements don’t solve the problem. For this case the temperatur sensor or the measurement device is placed on the mainboard. I hope this info helps other people on this webside.