I\'ve been working on a weather station using a raspberry pi. Due to the number of sensor inputs which need to be measured continuously I\'ve set up a number of functions u