Proximity sensor not found after replacing a water damaged display

After replacing a display with water damage, the proximity and light sensors are not working any more. Device Info HW and Proximity Test apps say no sensor found for both proximity and light. I made sure that the rubber seal was on the sensor before glueing the display. Unfortunately, I did not test the proximity sensor before glueing the display so I can't easily double-check. There seem to be no other issues (front and both rear cameras, speakers, microphone, vibration, calibrated fingerprint sensor and other sensors work fine). Does anyone have any idea what I can try?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0