I am trying to do a simulation for water pump such as if the user chooses on button, the water pump would start and vise versa. But, I have no idea on how to do this.
So if anyone could help me, or give me some ideas.

Thanks in advance.

You need to provide a lot more information, this is way to vague for anyone to give a meaningful answer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.