Proximity sensor causes phoneto boot loop
I have an iPhone XS that suffered some water damage but was rescued and treated with an ultrasonic alcohol bath and subsequent WD-40. Phone works perfectly except for one thing. When I connect the proximity sensor to the device it boot loops. I replaced the sensor with a new one and the device refuses to boot. It boots fine without any sensor attached.
Does any one have any insight into how I can solve this problem.