Arduino_Arvalis
8. Ανίχνευση κίνησης
int led = 13; // the pin that the LED is atteched to int sensor = 2; // the pin that the sensor is atteched to int state = LOW; // by default, no motion detected int val = 0; // variable to store the sensor status (value) void Διαβάστε περισσότερα…