cleanup code, move ds1820 to resources