Fixed some warnings
Added selection between continuoes and single read mode for sensors