What libraries work OK with fake DS18B20 temperature sensors?

I'm starting the second iteration of a project and reusing the many (presumably fake) DS18B20 sensors I've acquired over the years. Previously reliability was never that great. This time, to keep things simple and hopefully increase reliability, I'm going to have one sensor per bus, and run multiple buses per ESP32.

Has anyone found that some libraries are more tolerant than others when it comes to interfacing with these DS18B20 clones?

I am not aware of any library which is 'more tolerant' to fake DSa8B20. Anyway, I got a github article that you may find useful.

It discusses about counterfeit DS18B20 and what precautions you need to take while using those.

In my opinion, if you are doing a project that you're gonna sell, try to use original sensors from reputed suppliers like sparkfun, adafruit, dfrobot etc. You can also buy the IC and make a breakout board by yourself like this: https://www.pcbway.com/project/shareproject/DS18B20_temperature_sensor_breakout_board.html

From what I read on this forum, the fake DS18B20 sensors works better with 5V and with three wires (not parasitic).
In other words: The ESP32 is a 3.3V board, so you are in big trouble.
Please get rid of those fake sensors.

:point_right: Note that this answer is not fake.

Would you expect a 'fake' DS18B20 library to work ?

I have 4 DS18B20 clones from one of the major Chinese manufacturers (forget which one - detected by the code referenced above). They are packaged in a probe so I don't know what the chip markings are. They work fine on an ESP32 at 3.3 V. All are within spec when compared to an accurate thermometer.

You can power the DS18B20 from 5volt, and connect the pull up resistor to 3.3volt.
Leo..

1 Like

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