A transducer is a device, usually electrical or electronic, that converts one type of energy to another for the purpose of measurement or information transfer. Most transducers are either sensors or actuators. In a broader sense, a transducer is sometimes defined as any device that converts energy from one form to another.
A sensor is a physical device or biological organ that detects, or senses, a signal or physical condition and chemical compounds.