Transducer

Any device that converts one form of energy into another form of energy, specifically when one of the quantities is electrical. Thus, a loudspeaker converts electrical impulses into sound (mechanical impulses), a microphone converts sound into electrical impulses, a solar cell converts light into electricity, etc.

Transducer