Fixed define error
Moved eventmask to sensor files
Changed the name of the sensor thread pointer ro represent something meaningfull