Hello. It's my first time doing electronic work, so I'm not good enough.
That's why I came all the way here. I'd really appreciate it if you could let me know.
I want to implement a system that detects water rising in the tunnel during heavy rains and controls the entrance with barricade using servo motor.
I'm trying to control the servo motor 90 degrees at a certain level using a water level sensor without MPU, and I want to know how to connect the output of lm339 to the 555 timer.

As shown in the circuit diagram, I have set the thresholds for the firtst and secondary water levels. And I implemented it so that the led turns on according to the height.
.
First of all, the circuit that controls the motor with the button has been successful, but I need advice on how to remove the button and connect it.

I want to implement the barricade by controlling the servo motor 90 degrees when the water reaches the second water level with LED and controlling it 90 degrees again when it goes down to the first water level
How should I connect it?
That's why I came all the way here. I'd really appreciate it if you could let me know.
I want to implement a system that detects water rising in the tunnel during heavy rains and controls the entrance with barricade using servo motor.
I'm trying to control the servo motor 90 degrees at a certain level using a water level sensor without MPU, and I want to know how to connect the output of lm339 to the 555 timer.

As shown in the circuit diagram, I have set the thresholds for the firtst and secondary water levels. And I implemented it so that the led turns on according to the height.
.
First of all, the circuit that controls the motor with the button has been successful, but I need advice on how to remove the button and connect it.

I want to implement the barricade by controlling the servo motor 90 degrees when the water reaches the second water level with LED and controlling it 90 degrees again when it goes down to the first water level
How should I connect it?


