Book Image

Raspberry Pi Sensors

By : Rushi Gajjar
Book Image

Raspberry Pi Sensors

By: Rushi Gajjar

Overview of this book

Table of Contents (16 chapters)
Raspberry Pi Sensors
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

Troubleshooting common problems


We have covered almost everything on interfacing both of these sensors together. If you are still facing the problem in getting/reading the data, you could go through some of the common problems faced in the following sections. In most of the problems, it is advised that you check the connections made on the breadboard and correct the RasPi GPIO pin.

Received DHT data is not valid

The following points need to be kept in mind when the received DHT data is not valid:

  • First and foremost, as mentioned earlier, the received data directly depends on the connections you have made. Carefully check the connections of the pull-up resistor between data line and +5V line.

  • There can be a wrong value for the resistor. If you have connected 4.7KΩ, try to change it to 5KΩ, or you can use a maximum 10K resistor. A high value of the resistor can turn data into false or corrupted values.

  • Check the DHT orientation. The pin on the left-hand side, seen from front, is the VCC pin.

The...