- Motorisé
- Outils
-
Outils de dev.
-
Electronique
-
Puissance et Energie
- Connecteurs et Fils
- Grove
- Périphériques USB
- Moteur et servo-moteurs
- LEDs & Lampes
- Assembly kits
- Domotique
- Break-out Boards
- Réseau
- Bases de l'électronique
- Circuits imprimés (PCB)
- Son
- Circuits intégrés (Chips, puces, ICs)
- Connectivité sans fil
- Senseurs
- Interface Homme-Machine
- CMS / SMD
- Autres
-
Puissance et Energie
- Prototypage
Capteur de niveau d'eau, 52mm, PP, flotteur Horizontal, interrupteur
7,00 €
TTC
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); |
SENFLOWAT
18 Produits
Nouveau