Transducer

a device that converts variations in a physical quantity, such as pressure or brightness, into an electrical signal, or vice versa