In this paper, we propose and experimentally investigate an optical sensor based on a novel combination of a long-period fiber grating (LPFG) with a permanent magnet to measure electrical current in unmanned aerial vehicles (UAVs). The proposed device uses a neodymium magnet attached to the grating structure, which suffers from an electromagnetic force produced when the current flows in the wire of the UAV engine. Therefore, it causes deformation on the sensor and thus, different shifts occur in the resonant bands of the transmission spectrum of the LPFG. Finally, the results show that it is possible to monitor electrical current throughout the entire operating range of the UAV engine from 0 A to 10 A in an effective and practical way with good linearity, reliability and response time, which are desirable characteristics in electrical current sensing.