//Fab Academy 2022 //FaLab Anáhuac Puebla //José Manuel Díaz Bello const int laser = 5;//pin name= pin number const int boton = 9;//pin name= pin number void setup() { // put your setup code here, to run once: pinMode (laser,OUTPUT); //Defines the mode of the device, input or output pinMode(boton, INPUT_PULLDOWN); //Defines the mode of the device, input or output } void loop() { // put your main code here, to run repeatedly: int lectura = digitalRead(boton); //button state reading, high or low if (lectura==LOW)// If the button is low, put the laser on high { digitalWrite(laser,HIGH); } if (lectura==HIGH)//If the button is up, put the laser in low { digitalWrite(laser,LOW); } }