Correctly initialize sensor variables