Please add arduino-tone-pitch library to Library Manager. https://github.com/rodrigodornelles/arduino-tone-pitch Thanks.