Stufin
Home Quick Cart Profile

Float Sensor Contact Type CSSP

Buy Now on Stufin

Operating Temperature

-20C to 100C (-4F to 212F)

Supply Voltage

5V to 24V DC

Output Type

Normally Open (NO) or Normally Closed (NC)

Sensitivity

Adjustable (dependent on liquid type and viscosity)

Response Time

<1 second

Materials

Plastic or stainless steel stem, magnetic reed switch, and probe

Certifications

CE, RoHS, and REACH compliant

Applications

  • Industrial Automation: Liquid level monitoring in tanks, vessels, and pipes.
  • Process Control: Monitoring and control of liquid levels in chemical, pharmaceutical, and food processing industries.
  • IoT Systems: Real-time monitoring and control of liquid levels in remote or hard-to-reach locations.
  • Agricultural: Monitoring of liquid levels in irrigation systems, livestock watering systems, and crop protection systems.
  • Commercial: Monitoring of liquid levels in HVAC systems, industrial cleaning systems, and fire suppression systems.

Pin Configuration

  • Float Sensor Contact Type CSSP
  • The Float Sensor Contact Type CSSP is a widely used component in IoT applications for detecting liquid levels. This sensor provides a contact output, which means it can be directly connected to a microcontroller or other control systems. Here's a detailed explanation of the pins and how to connect them:
  • Pinout:
  • The Float Sensor Contact Type CSSP has 3 pins:
  • 1. VCC (Pin 1)
  • Function: Power supply pin
  • Description: This pin should be connected to a positive DC voltage source (typically 5V or 12V) to power the sensor.
  • Connection: Connect to VCC pin on the microcontroller or a power source.
  • 2. GND (Pin 2)
  • Function: Ground pin
  • Description: This pin should be connected to the ground of the circuit to provide a return path for the sensor's power supply.
  • Connection: Connect to GND pin on the microcontroller or a ground point on the PCB.
  • 3. OUT (Pin 3)
  • Function: Output pin
  • Description: This pin provides a contact output, which is normally open (NO) or normally closed (NC) depending on the liquid level. When the sensor detects the liquid level, it switches the output state.
  • Connection: Connect to a digital input pin on the microcontroller or a control system to read the sensor's output state.
  • Connection Structure:
  • To connect the Float Sensor Contact Type CSSP to a microcontroller (e.g., Arduino), follow this structure:
  • VCC (Pin 1) 5V or 12V power supply
  • GND (Pin 2) GND pin on the microcontroller or PCB
  • OUT (Pin 3) Digital input pin on the microcontroller (e.g., D2, D3, etc.)
  • For example, if you're using an Arduino board, the connections would be:
  • VCC (Pin 1) 5V pin on Arduino
  • GND (Pin 2) GND pin on Arduino
  • OUT (Pin 3) Digital pin 2 on Arduino
  • Note: Make sure to check the datasheet for specific voltage and current ratings of the sensor to ensure proper operation and avoid damage.
  • By following this pinout and connection structure, you can successfully integrate the Float Sensor Contact Type CSSP into your IoT project and accurately detect liquid levels.

Code Examples

Float Sensor Contact Type CSSP Documentation
Overview
The Float Sensor Contact Type CSSP is a digital float sensor designed to detect the presence or absence of a liquid level. It is an ideal solution for applications requiring accurate and reliable liquid level detection, such as tank level monitoring, fluid management, and industrial automation.
Technical Specifications
Operating Voltage: 5V DC
 Output: Digital (Open-Collector or Push-Pull)
 Sensing Range: 0-5mm (adjustable)
 Accuracy: 1mm
 Response Time: 10ms
 Interface: 3-pin connector (VCC, GND, OUT)
Code Examples
### Example 1: Basic Liquid Level Detection using Arduino
In this example, we will use the Float Sensor Contact Type CSSP to detect the presence of a liquid level and trigger an LED indicator.
Hardware Requirements
Float Sensor Contact Type CSSP
 Arduino Board (e.g., Arduino Uno)
 LED indicator
 Breadboard and jumper wires
Code
```c++
const int floatSensorPin = 2;  // Digital input pin for float sensor
const int ledPin = 13;        // Digital output pin for LED indicator
void setup() {
  pinMode(floatSensorPin, INPUT);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  int sensorState = digitalRead(floatSensorPin);
  if (sensorState == HIGH) {
    digitalWrite(ledPin, HIGH);  // Liquid level detected, turn on LED
  } else {
    digitalWrite(ledPin, LOW);  // No liquid level, turn off LED
  }
  delay(50);  // Debounce time
}
```
### Example 2: Liquid Level Monitoring using Raspberry Pi and Python
In this example, we will use the Float Sensor Contact Type CSSP to monitor the liquid level and display the status on a Raspberry Pi terminal.
Hardware Requirements
Float Sensor Contact Type CSSP
 Raspberry Pi (e.g., Raspberry Pi 4)
 Breadboard and jumper wires
Code
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
floatSensorPin = 17  # GPIO pin for float sensor
GPIO.setup(floatSensorPin, GPIO.IN)
while True:
    sensorState = GPIO.input(floatSensorPin)
    if sensorState:
        print("Liquid level detected!")
    else:
        print("No liquid level detected.")
    time.sleep(0.5)  # Polling interval
```
Note: In both examples, the float sensor is connected to a digital input pin, and the output is read using digitalRead() or GPIO.input(). The sensor's output is active high, meaning a high signal indicates the presence of a liquid level.