

A floating switch is a device used to detect the level of liquid within a tank. It floats on the surface of the liquid and activates a switch when the liquid reaches a certain level. This component is commonly used in applications such as sump pumps, water tanks, and other liquid level control systems. The floating switch is a reliable and cost-effective solution for automating the control of liquid levels in various industrial and domestic settings.








| Parameter | Value |
|---|---|
| Operating Voltage | 5V to 220V AC/DC |
| Max Current | 0.5A to 1.5A |
| Contact Resistance | ≤ 100 mΩ |
| Insulation | ≥ 100 MΩ |
| Operating Temp | -10°C to 60°C |
| Material | Polypropylene (PP) or Nylon |
| Cable Length | 1m to 5m |
| Pin Number | Description |
|---|---|
| 1 | Common (COM) |
| 2 | Normally Open (NO) |
| 3 | Normally Closed (NC) |
// Example code to read the state of a floating switch with Arduino UNO
const int floatSwitchPin = 2; // Pin connected to the floating switch
const int ledPin = 13; // Pin connected to an LED for indication
void setup() {
pinMode(floatSwitchPin, INPUT); // Set the float switch pin as input
pinMode(ledPin, OUTPUT); // Set the LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int switchState = digitalRead(floatSwitchPin); // Read the state of the switch
if (switchState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn on the LED if the switch is HIGH
Serial.println("Liquid level is high!");
} else {
digitalWrite(ledPin, LOW); // Turn off the LED if the switch is LOW
Serial.println("Liquid level is low.");
}
delay(500); // Wait for 500 milliseconds before the next reading
}
By following this documentation, users can effectively utilize the floating switch in their liquid level control applications, ensuring reliable and efficient operation.