The Arduino IDE (Integrated Development Environment) is used to program the Arduino in the SNT kit PCB. This is where you will be coding.

The code you write in the Arduino IDE tells the SNT Kit PCB which sensor is sending what to where, how to process the sensor data, and what the output should be.

Installing Arduino IDE

  1. Visit

  2. Download Windows Installer for Arduino.

  3. Run the installer. Wait for the installation to complete.

  4. Run the Arduino program.

Parts of the code

A sketch is the name that Arduino uses for a program. It is the unit of code that is uploaded to and run on an Arduino board.


The first few lines of the sketch are a comment:


/*     Prototype Name : Automatic Light- Motion Based
       Input Sensor   : Motion Sensor
       Output Device  : Relay
       Libraries Used : LiquidCrystalPCF584 and FastLED to turn off from use. 

Everything between the /* and */ is ignored by the Arduino when it runs the sketch (the * at the start of each line is only there to make the comment look pretty, and isn't required). It's there for people reading the code: to explain what the program does, how it works, or why it's written the way it is. It's a good practice to comment your sketches, and to keep the comments up-to-date when you modify the code. This helps other people to learn from or modify your code.

There's another style for short, single-line comments. These start with // and continue to the end of the line. For example, in the line:

int led_pin = 9 ; //LED is connected to digital pin 9