I’ll show you how to connect the DHT11 to the Raspberry Pi and output the humidity and temperature readings to an SSH terminal or to an LCD. Then I’ll give you some example programs for programming it with either C or Python.
The DHT11 measures temperature with a surface mountedNTC temperature sensor(thermistor) built into the unit. To learn more about how thermistors work and how to use them on the Arduino, check out ourArduino Thermistor Temperature Sensor Tutorial. With the plastic housing removed, you can see the...
The BME280 sensor is more expensive but it has more functionalities. For example, you can build a weather station project with only this sensor. But if you’re not interested in measuring the pressure or humidity, you can get a cheaper temperature sensor. Interfacing these sensors with Arduino...