fix sensor init