

A float switch is a device used to detect the level of liquid within a tank or reservoir. It operates by using a buoyant float that rises and falls with the liquid level, triggering an electrical switch to open or close a circuit. Float switches are widely used in applications where liquid level monitoring and control are essential.








Below are the key technical details for a typical float switch. Specifications may vary depending on the specific model.
| Parameter | Value |
|---|---|
| Operating Voltage | 5V to 240V AC/DC |
| Maximum Current | 0.5A to 15A (model-dependent) |
| Contact Type | Normally Open (NO) or Normally Closed (NC) |
| Operating Temperature | -10°C to 80°C |
| Material | Polypropylene, Stainless Steel, or ABS |
| Cable Length | 1m to 5m (varies by model) |
| Float Diameter | 25mm to 50mm (varies by model) |
| Liquid Compatibility | Water, oil, and other non-corrosive liquids |
Float switches typically have two or three wires for connection. The table below describes the wiring configuration:
| Wire Color | Function |
|---|---|
| Red | Common (COM) |
| Black | Normally Open (NO) contact |
| Blue | Normally Closed (NC) contact (if available) |
Note: Some float switches may only have two wires (Red and Black), in which case they operate as either NO or NC depending on the orientation.
Below is an example of how to use a float switch with an Arduino UNO to monitor water levels and control an LED.
// Float Switch Example with Arduino UNO
// This code monitors the float switch and turns an LED on or off based on the
// liquid level.
const int floatSwitchPin = 2; // Pin connected to the float switch
const int ledPin = 13; // Pin connected to the onboard LED
void setup() {
pinMode(floatSwitchPin, INPUT); // Set float switch pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
digitalWrite(ledPin, LOW); // Turn off LED initially
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int floatState = digitalRead(floatSwitchPin); // Read float switch state
if (floatState == HIGH) {
// Float switch is triggered (liquid level high)
digitalWrite(ledPin, HIGH); // Turn on LED
Serial.println("Liquid level HIGH");
} else {
// Float switch is not triggered (liquid level low)
digitalWrite(ledPin, LOW); // Turn off LED
Serial.println("Liquid level LOW");
}
delay(500); // Wait for 500ms before next reading
}
Float Switch Not Triggering:
Switch Stuck in One Position:
Incorrect Liquid Level Detection:
Float Switch Damaged:
Q1: Can a float switch be used with corrosive liquids?
A1: Only if the float switch is made of materials compatible with the corrosive liquid. Check the product specifications.
Q2: How do I know if my float switch is Normally Open (NO) or Normally Closed (NC)?
A2: This information is typically provided in the product datasheet. You can also test the switch with a multimeter.
Q3: Can I use a float switch to control a high-power pump?
A3: Float switches are usually rated for low currents. Use a relay or contactor to control high-power devices.
Q4: What happens if the float switch cable is too short?
A4: You can extend the cable using waterproof connectors, but ensure the connections are secure and insulated.