This sensor is not really meant to be fully submerged. So, when putting in it, Be certain that just the exposed traces to the PCB appear into contact with the water. Optical level sensors purpose by changing gentle rays into electrical signals. They measure a Bodily part of light then https://controltechme.com/ultrasonic-level-sensor/