logging added, multithreading added to temperature and motion sensor
reading.