RasPi Pico with DS18B20 on Philhower core

I'm trying to read a DS18B20 temperature sensor with a RasPi Pico. Some libraries are obviously incompatible and compilation terminates with an error (e.g. a library function calling an AVR library). Other libraries compile with warnings and upload the program successfully, but you cannot see your /dev/ttyACM0 port any longer...

Has anyone read a DS18B20 temperature sensor successfully on the Pico, with the Arduino Earle Philhower core? If so, please point me to the library or method that worked for you...

RT

This is a touchy part at 3.3V, especially in parasitic mode. The data sheet states: The Pullup Supply Voltage specification assumes that the pullup device is ideal, and therefore the high level of the pullup is equal to VPU. In order to meet the VIH spec of the DS18B20, the actual supply rail for the strong pull up transistor must include margin for the voltage drop across the transistor when it is turned on; thus: VPU_ACTUAL = VPU_IDEAL +. The minimum operating voltage for the part is 3V so you need to be careful of your wiring. Make this measurement at the part. I have not had any problems with the real or counterfeit parts, however I always used 5V. Let us know how you do.

I got it to work on the pico with philhower core. I used the library #include <microDS18B20.h>. I used 3.3volt but I powered the sensor directly from the 3.3v power supply.

And I verified my readings from two other sensors. Seems it works correctly because the values agree unless i put heat into the probe by touching it. I doubt it is right, but it works

The picture looks cool but the black wires do not show and it appears it is not powered. You can put the probe in hot water with another sensor and do the comparison that way, the water will tend to stabilize the measurement. Also salt water and Ice will give you another point as will boiling water.