HUMIDITY SENSOR

CODE:

#include<maker_humidity.h>

uint8_t AN_PIN=A0;


int main()
{


init();
Serial.begin(9600);

 

while(1)
{

Serial.print(“Humidity value is”);
Serial.println(maker_returnHumidityValue(A0));
Serial.print(“Average humidity value of 10 measurments is”);
Serial.println(maker_returnHumidityAvg(A0));
delay(1000);

}
return 0;

}

Rain/steam sensor can be used for measuring humidity and steam. It is highly sensitive and very responsive and this allow us to do some quick measurements. The output voltage increases when the humidity of the sensor surfaces rises. 

VCC – power supply pin (5V)

GND – ground pin (0V)

A1, 2 – input analog pin

Coded by: