Ultrasonic sensor JSN-SR04T to Electron

If the volume / dimensions of the tank are known, could you use a water level sensor to achieve the same goal, or make a digital switch? This would be a lot simpler.