Hello everybody, newbie here. I'm following this tutorial on Arduino Create called Plant Communicator and encountered a problem where the board has an error compiling it.
So far I have tried running other test examples such as the " SimpleWebServerWiFi.ino" and Blink ones and they work fine. I have also tried uploading the code when the board is attached to the breadboard like the schematic and without, the problem still persists.

Is the problem somewhere in the code then?
(What I have tried)
Much help is appreciated!
Russell
Code on Arduino IDE 1.8.15
#include <WiFiNINA.h>
#include<WiFiSSLClient.h>
const char* ssid = "blah blah"; // your network SSID (name)
const char* password = "blah blah blah"; // your network password
String httpsRequest = "https://hooks.zapier.com/hooks/catch/10758811/buvi9lw/?temperature=0&moisture=0&light=0&warning=0"; // your Zapier URL
const char* host = "hooks.zapier.com";
WiFiSSLClient client;
void setup() {
Serial.begin(9600);
while (!Serial);
delay(2000);
Serial.print("Connecting Wifi: ");
Serial.println(ssid);
while (WiFi.begin(ssid, password) != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println("");
Serial.println("WiFi connected");
}
void loop() {
float temperature = 22;
int moisture = 150;
int light = 40;
String warning = "This is a warning message";
warning.replace(" ", "%20");
send_email(temperature, moisture, light, warning );
delay(20000);
}
void send_email(float temperature, int moisture, int light, String warning) {
// convert values to String
String _temperature = String(temperature);
String _moisture = String(moisture);
String _light = String(light);
String _warning = warning;
if (client.connect(host, 443)) {
client.println("POST " + httpsRequest + "?temperature=" + _temperature + "&moisture=" + _moisture + "&light=" + _light + "&warning=" + _warning + " HTTP/1.1");
client.println("Host: " + String(host));
client.println("Connection: close");
client.println();
delay(1000);
while (client.available()) { // Print on the console the answer of the server
char c = client.read();
Serial.write(c);
}
client.stop(); // Disconnect from the server
}
else {
Serial.println("Failed to connect to client");
}
}```
**The error message is below:**
Arduino: 1.8.15 (Mac OS X), Board: "Arduino MKR1000"
/Users/russell01px2015/Documents/Arduino/libraries/WiFiNINA/src/utility/spi_drv.cpp: In static member function 'static void SpiDrv::begin()':
/Users/russell01px2015/Documents/Arduino/libraries/WiFiNINA/src/utility/spi_drv.cpp:103:15: error: 'NINA_GPIO0' was not declared in this scope
pinMode(NINA_GPIO0, OUTPUT);
^~~~~~~~~~
/Users/russell01px2015/Documents/Arduino/libraries/WiFiNINA/src/utility/spi_drv.cpp:103:15: note: suggested alternative: 'NINA_GPIOIRQ'
pinMode(NINA_GPIO0, OUTPUT);
^~~~~~~~~~
NINA_GPIOIRQ
/Users/russell01px2015/Documents/Arduino/libraries/WiFiNINA/src/utility/spi_drv.cpp: In static member function 'static int SpiDrv::available()':
/Users/russell01px2015/Documents/Arduino/libraries/WiFiNINA/src/utility/spi_drv.cpp:66:25: error: 'NINA_GPIO0' was not declared in this scope
#define NINA_GPIOIRQ NINA_GPIO0
^
/Users/russell01px2015/Documents/Arduino/libraries/WiFiNINA/src/utility/spi_drv.cpp:597:25: note: in expansion of macro 'NINA_GPIOIRQ'
return (digitalRead(NINA_GPIOIRQ) != LOW);
^~~~~~~~~~~~
/Users/russell01px2015/Documents/Arduino/libraries/WiFiNINA/src/utility/spi_drv.cpp:66:25: note: suggested alternative: 'NINA_GPIOIRQ'
#define NINA_GPIOIRQ NINA_GPIO0
^
/Users/russell01px2015/Documents/Arduino/libraries/WiFiNINA/src/utility/spi_drv.cpp:597:25: note: in expansion of macro 'NINA_GPIOIRQ'
return (digitalRead(NINA_GPIOIRQ) != LOW);
^~~~~~~~~~~~
exit status 1
Error compiling for board Arduino MKR1000.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.