You should start by reading this:
It would probably be best to save the value from the vPin to a global variable, then call a function that evaluates this and your other parameters.
Pete.
You should start by reading this:
It would probably be best to save the value from the vPin to a global variable, then call a function that evaluates this and your other parameters.
Pete.