This sketch defines two variables: lowerThreshold and upperThreshold. These variables symbolize our thresholds. To beat this issue, we endorse you to tend not to electric power the sensor all the time, but electricity the sensor only when examining the sensor's value. This may be carried out by connecting the sensor's https://controltechme.com/ultrasonic-level-sensor/