Create separate class for daylight sensor

Create separate class for daylight sensor. Drastically improves performance of Carpenter's blocks when there are thousands of them.