some cleanup for liquid level sensor