Ingo Lohs
Published © GPL3+

First Test: 37 Sensor Kit v2.0 from Elegoo - 7/37

First test of the available sensors.

BeginnerProtip2 hours3,036
First Test: 37 Sensor Kit v2.0 from Elegoo - 7/37

Things used in this project

Hardware components

Elegoo Flame-, Linear Hall-, Metal-, Temperature-, Sound-, Laser Emit Sensors (a part of the linked set)
×1

Software apps and online services

Arduino Web Editor
Arduino Web Editor

Story

Read more

Code

Flash and first test code

C/C++
int  sensorPin  =  A0;     // select the input pin for the sensor
int  sensorValue =  0;     // variable to  store  the value  coming  from  the sensor

// Range 0 to 1023

void setup()
{
Serial.begin(9600);
}

void loop()
{
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
delay(500);
}

Credits

Ingo Lohs

Ingo Lohs

182 projects • 194 followers
I am well over 50 years and come from the middle of Germany.

Comments