Following is my water tank representation, im controlling the water inlet pump using one water level sensor, apart from that i have already designed the sensor circuit for HIGH & LOW level only (due to minimum hardware). Sensor circuit works very well. Now im stuck at logic design stage, because as shown in fig. 1V = Empty Tank & 5V = Full tank. I want to turn on the water pump @1V to upto reach at 5V level, after that turn off the pump till sensor sense the 1V.
Note - I have tried Window comparator circuit it work fine during water filling from 1V to 5V, but it suddenly start the pump at 4.5V (I strictly want to make turn on the pump only @1V. also i have tried NAND gate ic , but it also works same as Win So anyone suggest me any logic gate or any other ckt for this?