Humidity Sensor

A humidity sensor measures the humidity of earth or water.
Information

Type : Sensor

Mode : Analog

Pins : 0-7 (analog)

Output Values : 0-1023

Tutorial : funduino

Note: Only the lower parts can get wet!

Image by funduino, CC-BY-SA.

Connection scheme

Scheme made with Fritzing.

Functions

Analog Read

Read Analog State

Reads a analog value.

void function_0_humiditySensor(){
int value = analogRead(pin_0_humiditySensor);
function_0_humiditySensor();
}
  
int value = analogRead(pin_0_humiditySensor);
  
void function_0_humiditySensor(){
int value = analogRead(pin_0_humiditySensor);
state = 1;
}
  

Last modified April 12, 2022: updated code snippets (e7162de)