I'm quite new with the electronics part of Arduino, but I thought that this was the basic way to get the DS18B20 temperature device hooked up. However, I can't detect it in my program using OneWire and DallasTemperature.
This is an image of my connections:
Basically my approach was like this:
Connect ground on ground on the DS18B20. Connect 5V from the Arduino to both DQ from the DS18B20 and Port 2 on my Arduino (the two yellow cables). Between the 5V and the two yellow cables, I connected a 4.7K resistor. Vdd on the DS18B20 is not connected to anything.
Anyone have any idea why this is not working as expected for me?
Thanks in advance!