check for change in sensor