How to tell if a valve is open or closed