Automatic liquid level detection and refill in a container using ultrasonic module