This is a little off the beaten track so this is an appropriate channel.
I thought I’d share my recent pet (and first) Arduino project. I had a requirement to detect when my electric roller garage door had been left open as sometimes the button gets pressed accidentally and it opens without me knowing.
Using a magnetic switch, an MKR1010 WiFi and AWS I’ve put together a first project that will send an SMS and email to defined numbers and email addresses when the door is left open for a defined period of time. It’ll then notify again when the door is closed, but only if it’s previously been left open.
For anyone interested, the code for the Arduino and AWS resources is
here. Any feedback, improvements, criticisms or even PRs to improve are welcomed
There’s a high level architecture diagram in the readme but basically it uses an HTTPs request from the Arduino using the WifiSSLClient library and WiFiNina to an API Gateway endpoint in AWS which is secured using HTTP Basic Authentication.
This invokes a lambda function which sends an email via Simple Email Service (SES) and posts a notification to a Simple Notification Service topic.
The AWS SMS service is subscribed to that topic and so sends an SMS to each mobile phone subscriber when the topic is published to.
It was a bit of a voyage of discovery, it’s a long time since I wrote any C, and never in any embedded project, but got something working in the real world with hardware through to cloud which I’m pretty chuffed about. Tomorrow out comes the soldering iron where I wire it up permanently and install in the garage.
I posted similar in the Arduino forum too ( and gave a big old hat tip to SST )