actionplus

the short version is tested and works.
It does not check the presence of a DS1820, it assumes it is just there.

If you would like to check the presence of the sensor youl will need some more code.