In this project we are going to make "Water Level Indicator Sensor"
A water level indicator, as the name implies, is a system that signals specific levels of water or other liquid, and it is used in a variety of applications. It may be used to measure the water level in the tank of a boiler in industries, and it can also be used to check the amount of water that crops require in agriculture. In conclusion, we may adopt this fundamental circuit in several situations. The level of water is detected via water level sensors. in those circuits. Industry, chemical plants, and other liquid storage systems all use water level sensors. So, in this tutorial, we are going to make Water Level Sensor with ATtiny85 and Buzzer Indicator.
JLCPCB is the foremost PCB prototype & manufacturing company in china, providing us with the best service we have ever experienced regarding (Quality, Price Service & Time).PCB Prototype for 5$
#define sensorPin A3
#define buzzer 4
// Value for storing water level
int val = 0;
void setup() {
pinMode(buzzer, OUTPUT);
digitalWrite(buzzer,LOW);
}
void loop() {
int level = analogRead(sensorPin);
if(level>450)
{
digitalWrite(buzzer,HIGH);
}
else
{
digitalWrite(buzzer,LOW);
}
delay(1000);
}
Circuit Diagram
- Devices for home automation.
- For the regulation of oil tanks.
- Control systems for irrigation.
- Controlling the level of a gasoline tank, etc