So how does the sensor actually work?