I am facing problem with DS18B20 Sensor project and water pump with reley, Some images and SS are given below. Please, help me to troubleshoot this

My project has multiple problem. DS18B20 Doesn't show proper temparature. It shows -127 degree celsius. By googling, i found that this is a wiring issue. I am checking all the wiring multiple time. But, problem is still not solved. My diagram is given below as an image.

Diagram:

Here is images of my own work:

[grid]

Here is a short video of my project.
Link: Click Here

Note: In previous some problems of this forum, i saw that they didn't use external power supply for the pump. But, i am using external power supply.

Hi there, and welcome!

Diagram - excellent
Code, screenshot of it - not so great
Photo - yeah, but it's generally hard to see connections

The code, go to Edit and choose Copy for Forum, then edit your post, remove the picture if you like, and paste the code.

Edit: Saw the Note, and a separate PSU is best approach. An Arduino only have so limited power to source.

You connected the DS18B20 to 3.3V.
Connect it to 5V and tell us if it worked.

Please NO images of code, it's unreadable.
In the IDE click on Edit, then click on Copy for Forum. That will copy your code for this Forum.
Then come back to the Forum and just do a simple paste.

Sensor signal will swing between 0V and 3.3V. The Arduino UNO's VIH = 3.0 V which means that UNO will always recognize 3.3V as HIGH. Thereore, DS18B20 will work on either 3.3V or 5V.

I believe that you have a spare DS18B20 sensor which you may put on the breadboard and program to see that it works.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.