• Nouveau

Capteur de niveau d'eau, 52mm, PP, flotteur Horizontal, interrupteur

SENFLOWAT
5,83 €

Water Level Switch Liquid Sensor Float Switch Plastic Ball

Features

  • Made of high-quality material.
  • Mainly used to detect the level of liquid in a tank to turn on / off a pump, indicator, alarm, or another device.
  • Optional 2-way to install as a normally closed/open switch according to your needs.
  • Suitable for hydroponics, salt water, fresh water, gardening, power control aquariums.

int FloatSensor = 2;
int led = 13;
int buttonState = 1; //reads pushbutton status

void setup() {
Serial.begin(9600);
pinMode(FloatSensor, INPUT_PULLUP);
pinMode (led, OUTPUT);
}
void loop() {
buttonState = digitalRead(FloatSensor);
if (buttonState == HIGH) {
digitalWrite(led, LOW);
Serial.println("WATER LEVEL - LOW");
}
else {
digitalWrite(led, HIGH);
Serial.println("WATER LEVEL - HIGH");
}
delay(1000);
}

20 Produits
Nouveau produit
No reviews
Product added to wishlist
Product added to compare.