set sensor equal to true; need to revisit this file