bugs fixed - sensor init