5V to 24V DC
5V to 24V DC
<10mA
Digital (NO and NC contacts)
10mm to 50mm
<1 second
1 meter (custom lengths available)
Applications
| The Magnetic Float Sensor FS37A (Vertical) is suitable for use in a variety of applications, including |
Liquid level monitoring in tanks and containers
Water treatment and wastewater management systems
Chemical processing and storage
Industrial automation and control systems
HVAC and climate control systems
Medical equipment and biomedical applications
Certifications and Compliance
| The Magnetic Float Sensor FS37A (Vertical) meets the following certifications and compliance standards |
CE (Conformit Europene)
RoHS (Restriction of Hazardous Substances)
REACH (Registration, Evaluation, Authorization, and Restriction of Chemicals)
UL (Underwriters Laboratories)
Warranty and Support
The Magnetic Float Sensor FS37A (Vertical) comes with a 1-year warranty and dedicated technical support from the manufacturer.
Magnetic Float Sensor FS37A (Vertical) DocumentationOverviewThe Magnetic Float Sensor FS37A (Vertical) is a binary sensor used to detect the presence or absence of a liquid in a tank or container. The sensor consists of a magnetic float that rises or falls with the liquid level, triggering a reed switch to open or close. This documentation provides a comprehensive guide to using the Magnetic Float Sensor FS37A (Vertical) in various IoT applications.Pinout and ConnectionsThe Magnetic Float Sensor FS37A (Vertical) has two pins:VCC (Power Supply): Connect to a 5V power source.
OUT (Output): Connect to a digital input pin on a microcontroller or development board.Code Examples### Example 1: Basic Liquid Level Detection using Arduino UnoIn this example, we will use the Magnetic Float Sensor FS37A (Vertical) to detect the presence of a liquid in a tank and toggle an LED indicator.
```c++
const int sensorPin = 2; // Connect to OUT pin of the sensor
const int ledPin = 13; // Connect to an LED indicatorvoid setup() {
pinMode(sensorPin, INPUT);
pinMode(ledPin, OUTPUT);
}void loop() {
int sensorState = digitalRead(sensorPin);
if (sensorState == HIGH) {
digitalWrite(ledPin, HIGH); // Liquid detected, turn on LED
} else {
digitalWrite(ledPin, LOW); // No liquid, turn off LED
}
delay(100);
}
```
### Example 2: Liquid Level Monitoring using Raspberry Pi and PythonIn this example, we will use the Magnetic Float Sensor FS37A (Vertical) to monitor the liquid level in a tank and send notifications using Python and the RPi.GPIO library.
```python
import RPi.GPIO as GPIO
import timeGPIO.setmode(GPIO.BCM)
sensor_pin = 17 # Connect to OUT pin of the sensor
GPIO.setup(sensor_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)while True:
sensor_state = GPIO.input(sensor_pin)
if sensor_state:
print("Liquid detected!")
# Send notification using email or messaging service
else:
print("No liquid detected.")
time.sleep(1)
```
### Example 3: IoT Liquid Level Monitoring using ESP8266 and BlynkIn this example, we will use the Magnetic Float Sensor FS37A (Vertical) to monitor the liquid level in a tank and display the status on a Blynk dashboard using an ESP8266 board.
```c++
#include <WiFi.h>
#include <BlynkSimpleESP8266.h>char auth[] = "Your_Blynk_Token";
char ssid[] = "Your_WiFi_SSID";
char pass[] = "Your_WiFi_Password";const int sensorPin = D5; // Connect to OUT pin of the sensor
WidgetLED led(V0);void setup() {
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
pinMode(sensorPin, INPUT);
}void loop() {
int sensorState = digitalRead(sensorPin);
if (sensorState == HIGH) {
led.on(); // Liquid detected, turn on LED on Blynk dashboard
} else {
led.off(); // No liquid, turn off LED on Blynk dashboard
}
Blynk.run();
delay(100);
}
```
Notes and PrecautionsEnsure the sensor is properly calibrated and adjusted to the desired liquid level threshold.
Use a suitable power supply and voltage regulator to power the sensor and microcontroller/development board.
Avoid exposing the sensor to harsh environmental conditions, such as extreme temperatures, humidity, or mechanical stress.
Follow proper safety precautions when working with electrical components and liquids.