Arduino is widely used for building IoT devices that collect data from the physical world…