Hi, I wrote a simple program that turns a LED on when a sensor detects smoke. I have a LED and a smoke sensor MQ-2 connected to RMTT. I upload the code from Arduino IDE to the Expansion module RMTT via USB and it works fine.
void setup() {
pinMode(21, OUTPUT); //led pin
pinMode(4, INPUT)...