Code doesn't work for new Arduino Nano 33 BLE board

Ensure that you install the board's package core, see www.arduino.cc/en/Guide/Cores