Surface mounted DS18B20 sensors are reading temperature equal to zero while the same code works fine for through hole DS18B20. When I have through hole DS18B20 working fine and I connect the surface mounted DS18B20, the whole bus starts sending zeros and the through hole DS18B20 stop working. The code is running in an STM32G4.
I have checked the wiring as it works fine when connected to an Arduino. Through hole DS18B20 work fine, but surface mounted DS18B20 don’t, any ideas?