I am not entirely sure, as I Just copied and pasted the code from this project right here:
https://create.arduino.cc/projecthub/boiteconnecteeopt/mailbox-notifier-ed6dba?ref=user&ref_id=1595298&offset=0