Special Sensor for control of the generator frequency