Please install lib. Check this instruction #4 "Install the Madgwick library from Arduino IDE's library manager. To do this, open the Arduino IDE, go to "Sketch -> Include Library -> Manage Libraries". There you can search 'Madgwick' and install the library directly from there."