

The Sensorhumedad, manufactured by Arduino (Part ID: UNO), is a reliable humidity sensor designed to measure the moisture level in the air. This sensor is widely used in applications such as environmental monitoring, HVAC (Heating, Ventilation, and Air Conditioning) systems, agricultural automation, and weather stations. Its compact design and compatibility with microcontrollers like the Arduino UNO make it an excellent choice for both hobbyists and professionals.








The Sensorhumedad is designed to provide accurate and stable humidity readings. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5V |
| Operating Current | < 20 mA |
| Humidity Range | 20% - 90% RH (Relative Humidity) |
| Accuracy | ±5% RH |
| Response Time | ≤ 5 seconds |
| Operating Temperature | -20°C to 60°C |
| Output Signal | Analog Voltage |
The Sensorhumedad has three pins, as described in the table below:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin (3.3V - 5V) |
| 2 | GND | Ground connection |
| 3 | OUT | Analog output pin that provides the humidity reading |
To use the Sensorhumedad in a circuit, follow these steps:
Wiring the Sensor:
VCC pin of the sensor to the 5V pin on the Arduino UNO.GND pin of the sensor to the GND pin on the Arduino UNO.OUT pin of the sensor to an analog input pin on the Arduino UNO (e.g., A0).Arduino Code Example: Below is an example code snippet to read humidity data from the Sensorhumedad using an Arduino UNO:
// Define the analog pin connected to the sensor's OUT pin
const int sensorPin = A0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
// Convert the analog value to a percentage (assuming 0-1023 maps to 0-100%)
float humidity = (sensorValue / 1023.0) * 100.0;
// Print the humidity value to the Serial Monitor
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println("%");
delay(1000); // Wait for 1 second before taking the next reading
}
Note: The conversion formula in the code assumes a linear relationship between the sensor's output and humidity. Refer to the sensor's datasheet for more precise calibration if needed.
Important Considerations:
No Output or Incorrect Readings:
Fluctuating Humidity Readings:
VCC and GND pins to stabilize the power supply.Sensor Not Responding:
Q: Can the Sensorhumedad measure temperature as well?
A: No, the Sensorhumedad is designed specifically for humidity measurement. For temperature and humidity sensing, consider using a combined sensor like the DHT11 or DHT22.
Q: How can I improve the accuracy of the sensor?
A: Perform calibration using a reference humidity source and adjust the conversion formula in your code accordingly.
Q: Is the Sensorhumedad compatible with other microcontrollers?
A: Yes, the Sensorhumedad can be used with other microcontrollers that support analog input, such as ESP32, Raspberry Pi (with an ADC), and STM32.
By following this documentation, you can effectively integrate the Sensorhumedad into your projects and ensure reliable humidity measurements.