A quick article to illustrate how to check if the valve has malfunction/faulted. It uses a combination of limit switch status to determine that. This snippet also has a debounce timer for the fault/malfunction status of the valve (limit switch state).
About the Rabi Gurung
I am a software developer in Calgary, Alberta, Canada with passion in getting my fingers in any new technology. I started software development when I was 10 years old and have never looked back. Now with well over 35 years of software development, I wanted to share some of these key knowledge with the people of the world in the wide web.