djsfantasi
- Joined Apr 11, 2010
- 9,237
Working backwards in your code, the water pump is turned on when
mval<=50
“mval” is the result of the map() function. Your input limits are as follows:Map(Val,200,700,100,1)
But the input can be from 0 to 1023 unless you know something I don’t. What happens if val<200 or val>700?