Simple thermometer using digital temperature sensor DS18S20
In this project the DQ pin from DS18S20 is connected to Atmega168PB on pin PD0.
The clock of Atmega168PB is 16Mhz external quartz .
In order to work you need to set the fuse bits as follows :
H_Fuse = 0xDF
L_Fuse = 0xF7
e_Fuse = 0x01
The full code can be found here :
https://github.com/microelectronica-eu/Atmega168PB-DS18B20.git