Pressure Sensing: These sensors use tension variations to ascertain water levels. As water depth will increase, the strain within the sensor increases accordingly. The sensor can offer exact readings by changing this force right into a electronic signal. Within the setup function, we initialize the serial interaction at 9600 baud, https://controltechme.com/ultrasonic-level-sensor/