The function reports the temperature or humidity from the DHT sensor connected to the selected pin.
There are lots of pins to which the sensor can be connected:
- Digital Pin: D3
- Analog Pins: A1 and A2
- Servo Pins: S1 and S2
- Touch Pins: T1, T2, T3, T4, and T5