sensor explained