initialize $sensor