Description
HR202L Humidity Sensor
The HR202L is a resistive relative-humidity sensor made with organic macromolecular materials. It offers a broad measurement range, fast response and long-term stability.
Specifications
- Relative-humidity range: 20–95% RH
- Operating temperature: 0–60 °C
- Impedance: 31 kΩ at 60% RH and 25 °C (as stated in the listing)
- Operating voltage: 1.5 V AC maximum sine-wave voltage
- Operating frequency: 500 Hz–2 kHz
- Power consumption: low power, maximum 0.2 mW
- Response time: ≤20 seconds in air
How it works
The HR202L changes impedance in response to humidity. As humidity rises, the sensor’s resistance decreases. A measurement circuit can read this change and convert it into a relative-humidity value.
Applications
- Weather-condition monitoring
- HVAC systems (heating, ventilation and air conditioning)
- Greenhouse automation
- Industrial-environment monitoring
Pinout and measurement circuit
- Pin 1: connect to an analog input or measurement circuit
- Pin 2: connect to the circuit ground through the specified resistance network
The source Arduino example uses 100 kΩ and 60 kΩ resistors in series, plus a 100 nF ceramic capacitor. The sensor is resistive and its data-sheet circuit may require AC excitation; verify the recommended circuit before connecting it directly to a microcontroller input.
Using it with Arduino Uno
Required components
- Arduino Uno
- HR202L humidity sensor
- 1 × 100 kΩ resistor
- 1 × 60 kΩ resistor
- 1 × 100 nF ceramic capacitor
- Connecting wires
Basic Arduino example
const int sensorPin = A0; // Broche où le HR202L est connecté
float humidity;
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(sensorPin);
float resistance = (1023.0 / sensorValue - 1.0) * 100000.0; // Résistance de référence
humidity = (log(resistance / 31.0) / log(10)) / 0.03; // Formule simplifiée pour HR202L
Serial.print("Humidité: ");
Serial.print(humidity);
Serial.println(" %");
delay(2000);
}
How the example works
- Reads the sensor circuit at analog input
A0and starts serial communication at 9600 baud. - Calculates resistance from the analog reading using the formula in the code, which assumes a 100 kΩ reference resistor.
- Uses a simplified conversion to estimate relative humidity and prints the result to the serial monitor.
- Waits two seconds before the next reading.
Connections in the source example
- HR202L pin 1: Arduino A0
- HR202L pin 2: Arduino GND through the 100 kΩ and 60 kΩ series resistors
Keywords: HR202L humidity sensor, resistive humidity sensor, Arduino humidity measurement, relative humidity.










