Yes, the electrical wire is included with the sensor.