Steam_Sensor_(SKU_SEN0121) - jimaobian/DFRobotWiki GitHub Wiki

Introduction

This is a steam sensor from DFRobot. This steam sensor can be connected to the Arduino IO Expansion shield directly. The output voltage will increase when the humidity of the sensor surface goes up.

Applications

Simple rain detector Cheap steam level switch Touch sensor based on humidity

Warning: The connector is not waterproof, please be careful not to put the connector directly in water.

Specification

  • Power supply: 3.3v or 5v
  • Output voltage signal: 04.5v(@5v) or 03.0v(@3.3v)
  • Pin definition:
    • Analog output(Blue wire)
    • GND(Black wire)
    • Power(Red wire)
  • Size: 30x20x6mm

Connection Diagram

Stream_Sensor Connection Diagram

Sample Code

/*******************************
           Connection:
             VCC-5V
             GND-GND
             S-Analog pin 0

 You can put the sensor on your palm,
 it may sense the humidity of your palm
 ********************************/

void setup()
{
  Serial.begin(9600);// open serial port, set the baud rate to 9600 bps
}
void loop()
{
  int sensorValue;
  sensorValue = analogRead(0);   //connect Steam sensors to Analog 0
  Serial.println(sensorValue); //print the value to serial
  delay(200);
}