Stufin
Home Quick Cart Profile

Magnetic Float Sensor FS37A (Vertical)

Buy Now on Stufin

Operating Voltage

5V to 24V DC

Current Consumption

<10mA

Output Signal

Digital (NO and NC contacts)

Trigger Point Adjustment

10mm to 50mm

Response Time

<1 second

Cable Length

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.

Pin Configuration

  • Magnetic Float Sensor FS37A (Vertical) Pinout and Connection Guide
  • The Magnetic Float Sensor FS37A (Vertical) is a popular IoT component used to detect the presence or absence of liquids in tanks, containers, or pipes. This sensor features a compact design and reliable performance, making it an ideal choice for various industrial and consumer applications. Here's a detailed explanation of the pins and how to connect them:
  • Pinout:
  • The Magnetic Float Sensor FS37A (Vertical) has a total of 3 pins, which are:
  • 1. VCC (Power Supply Pin)
  • Function: Supplies power to the sensor
  • Voltage Range: 4.5V to 24V DC
  • Recommended Voltage: 5V DC
  • 2. GND (Ground Pin)
  • Function: Provides a reference ground for the sensor
  • Connection: Connect to the negative terminal of the power supply or a common ground point in the system
  • 3. DO (Digital Output Pin)
  • Function: Provides a digital output signal indicating the presence or absence of the float
  • Output Type: TTL (Transistor-Transistor Logic) compatible
  • Output Logic:
  • + High (H) when the float is present (e.g., the liquid level is above the sensor)
  • + Low (L) when the float is absent (e.g., the liquid level is below the sensor)
  • Connection Guide:
  • To connect the Magnetic Float Sensor FS37A (Vertical), follow these steps:
  • 1. Connect VCC to Power Supply
  • Connect the VCC pin to a suitable power supply (e.g., a 5V DC regulated power source)
  • Ensure the power supply voltage is within the recommended range (4.5V to 24V DC)
  • 2. Connect GND to Ground
  • Connect the GND pin to a common ground point in the system or the negative terminal of the power supply
  • Ensure a reliable ground connection to prevent noise or interference
  • 3. Connect DO to Microcontroller or Logic Circuit
  • Connect the DO pin to a digital input pin on a microcontroller (e.g., Arduino, Raspberry Pi) or a logic circuit
  • Use a pull-up or pull-down resistor as required by your specific application
  • Ensure the microcontroller or logic circuit is configured to read the digital output signal correctly
  • Important Notes:
  • The sensor is sensitive to the orientation of the magnetic float. Ensure the float is properly aligned with the sensor's magnetic field to obtain accurate results.
  • Avoid exposing the sensor to strong magnetic fields, which can affect its performance.
  • Use a suitable cable or wire to connect the sensor to the system, and ensure the connections are secure and reliable.
  • By following these guidelines, you can successfully integrate the Magnetic Float Sensor FS37A (Vertical) into your IoT project and accurately detect the presence or absence of liquids.

Code Examples

Magnetic Float Sensor FS37A (Vertical) Documentation
Overview
The 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 Connections
The 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 Uno
In 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 indicator
void 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 Python
In 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 time
GPIO.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 Blynk
In 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 Precautions
Ensure 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.