Initialize sensor