Source: https://mokxi.com/kits/companion/keyestudio-37-in-1-sensor-kit
Updated: 2026-11-07

Kits / Kit companions
Kit companion

# Keyestudio 37 in 1 Sensor Kit: every lesson, simulated

All 37 module projects, in order, each a circuit that runs in your browser on the pins the project uses. Try every sensor in the box, from a light and a microphone to a flame, a magnet and a motion detector, before you wire one.

Open the first lesson Find your lesson What else it can build

Not affiliated with Keyestudio. Lesson titles are referenced so you can follow along.

Lesson by lesson

## Every lesson in the kit’s order

Lesson numbers and titles follow the Arduino tutorial for KS0068 in Keyestudio’s online wiki. Each circuit uses the kit’s parts on the pins the lesson uses.

37 of the 37 lessons with a circuit run here, 8 of them with a change we name.

Project 1

### White LED Light

Runs, with a change

An LED module on pin 7, on for a second and off for a second.

The module is a part and its resistor on a little board; here the same parts sit on a breadboard.

Open in the editor LED module on pin 7, blinking

Project 2

### Red LED Light

Runs, with a change

The same blink on pin 7 with the red LED module.

The module is a part and its resistor on a little board; here the same parts sit on a breadboard. Click the LED and make it red.

Open in the editor LED module on pin 7, blinking

Project 3

### 3W LED Module

Runs, with a change

A 3 W LED on pin 13, blinking once a second.

The module’s LED and its driver are wired as parts here: a 3 W power LED, a MOSFET module on pin 13 and a 4.7 ohm resistor from 5 V.

Open in the editor 3 W power LED on pin 13

Project 4

### RGB LED

Runs, with a change

Red on pin 11, blue on 10 and green on 9, each color fading up and down in turn.

The module carries the three resistors on its board; here they sit on a breadboard with the LED.

Open in the editor RGB LED module: red 11, blue 10, green 9

Project 5

### Analog Temperature

Runs here

A thermistor module on A0, turned into degrees with the beta equation.

Open in the editor Analog temperature module on A0

Project 6

### Photocell Sensor

Runs here

A photoresistor module on A0: the reading follows the light.

Open in the editor Photocell module on A0

Project 7

### Analog Sound

Runs here

A microphone module on A0: clap and the reading jumps.

Open in the editor Analog sound module on A0

Project 8

### Analog Rotation Sensor

Runs here

A rotation sensor on A0, its reading printed as you turn it.

Open in the editor Analog rotation sensor on A0

Project 9

### Passive Buzzer

Runs here

A passive buzzer on pin 3 plays two tones made by switching the pin by hand.

Open in the editor Passive buzzer module on pin 3

Project 10

### Digital Buzzer

Runs here

An active buzzer on pin 3, on for a second and off for a second.

Open in the editor Active buzzer module on pin 3

Project 11

### Digital Push Button

Runs here

A push button module on pin 3 lights the LED on pin 13 while it is held.

Its 10k is set as a pull-down, as on the kit’s board: pressed reads HIGH.

Open in the editor Button module on pin 3 lights the LED on 13

Project 12

### Digital Tilt Sensor

Runs, with a change

A tilt switch on pin 3; the LED on pin 13 follows it.

The module is a part and its resistor on a little board; here the same parts sit on a breadboard.

Open in the editor Tilt switch on pin 3 lights the LED on 13

Project 13

### Photo Interrupter

Runs here

Block the slot of the photo interrupter on pin 3 and the LED on pin 13 follows.

Open in the editor Photo interrupter on pin 3 lights the LED on 13

Project 14

### Capacitive Touch

Runs here

A touch pad on pin 2 lights the LED on pin 13.

Open in the editor Touch sensor on pin 2 lights the LED on 13

Project 15

### Knock Module

Runs here

Knock the sensor on pin 3 and the LED on pin 13 flashes.

Its 10k is set as a pull-down, as the kit’s sketch reads it: a knock is HIGH pulses.

Open in the editor Knock sensor on pin 3 lights the LED on 13

Project 16

### Hall Magnetic Sensor

Runs here

Bring a magnet to the Hall sensor on pin 3 and the LED on pin 13 lights.

The sketch turns on pin 3’s own pull-up, which the module carries on its board.

Open in the editor Hall sensor on pin 3 lights the LED on 13

Project 17

### Line Tracking Sensor

Runs here

A line sensor on pin 3 tells a black line from a white floor.

Open in the editor Line tracking sensor on pin 3

Project 18

### Infrared Obstacle Avoidance

Runs here

Something in front of the obstacle sensor on pin 3 lights the LED on pin 13.

Open in the editor Obstacle sensor on pin 3 lights the LED on 13

Project 19

### PIR Motion Sensor

Runs here

Movement in front of the PIR sensor on pin 3 lights the LED on pin 13.

Open in the editor Motion sensor on pin 3 lights the LED on 13

Project 20

### Flame Sensor

Runs here

A flame near the sensor on pin 2 lights the LED on pin 13.

Open in the editor Flame sensor on pin 2 lights the LED on 13

Project 21

### Vibration Sensor

Runs here

A shake on pin 3 fires an interrupt and lights the LED on pin 13 for half a second.

Open in the editor Vibration sensor on pin 3, read by an interrupt

Project 22

### Analog Gas Sensor

Runs here

An MQ-2 gas sensor on A0: more gas, a higher reading.

Open in the editor Gas sensor module on A0

Project 23

### Analog Alcohol Sensor

Runs here

An MQ-3 alcohol sensor on A0: the reading climbs with the vapor.

Open in the editor Alcohol sensor on A0

Project 24

### Digital IR Transmitter

Runs, with a change

An infrared LED module sends codes for another board’s receiver to read.

Here two Nanos send to each other, each with an IR LED and a receiver: press a button and the other board reads the code. A KY-005 is the same LED on a board; find it in the parts panel. The receiving side alone is project 25.

Open in the editor Laser tag: two Nanos

Project 25

### Digital IR Receiver

Runs here

An IR receiver on pin 11 decodes the remote’s buttons.

Open in the editor IR receiver module on pin 11

Project 26

### Rotary Encoder

Runs here

An encoder on pins 2, 3 and 4 counts clicks each way, with an LED for each direction on 5 and 6.

Open in the editor Rotary encoder on pins 2, 3 and 4, LEDs on 5 and 6

Project 27

### LM35 Linear Temperature

Runs here

An LM35 on A0: 10 millivolts a degree, printed in Celsius.

Open in the editor LM35 temperature sensor on A0

Project 28

### 18B20 Temperature Sensor

Runs here

A DS18B20 on pin 2 reads the temperature over one wire.

Open in the editor DS18B20 temperature sensor on pin 2

Project 29

### ADXL345 Three Axis Acceleration

Runs here

An ADXL345 on the I2C pins reports X, Y and Z as you tip it.

Open in the editor ADXL345 accelerometer on I2C

Project 30

### DHT11 Temperature and Humidity Sensor

Runs here

A DHT11 on pin 4 reports the humidity and the temperature.

Open in the editor DHT11 module on pin 4

Project 31

### Bluetooth Module

Runs, with a change

An HC-05 brings messages from a phone to the board, and the board answers with a lamp.

Here the module talks on pins 2 and 3, so the serial monitor stays free, and a word turns a lamp on pin 9 on or off. The lesson wires it to pins 0 and 1 and blinks pin 13 for the letter a.

Open in the editor Bluetooth lamp

Project 32

### TEMT6000 Ambient Light

Runs here

A TEMT6000 ambient light sensor on A0: brighter light, a higher reading.

Open in the editor Ambient light sensor on A0

Project 33

### SR01 Ultrasonic Sensor

Runs, with a change

An ultrasonic sensor with TRIG on 8 and ECHO on 7 prints the distance, and pin 13 lights when nothing is in range.

An HC-SR04 stands in for the SR01; the two are driven the same way.

Open in the editor Ultrasonic sensor on 8 and 7, the LED on 13 when out of range

Project 34

### Joystick Module

Runs here

X on A0, Y on A1 and the push switch on pin 3, printed together.

Open in the editor Joystick module: A0, A1 and pin 3

Project 35

### DS3231 Clock Module

Runs here

A DS3231 on the I2C pins keeps the date and time; the board prints them once a second.

The sketch reads the clock with RTClib rather than the lesson’s DS3231 library.

Open in the editor DS3231 real-time clock on I2C

Project 36

### 5V Relay Module

Runs here

A relay on pin 8 clicks on and off every two seconds, switching an LED.

Open in the editor Relay module on pin 8

Project 37

### Vapor Sensor

Runs here

A steam sensor on A0: the reading rises as moisture bridges its traces.

Keyestudio publishes no figures for this board, so its curve is the water level sensor’s.

Open in the editor Steam sensor on A0

Lesson list and pins read from Keyestudio’s online tutorial. The explanations on this page are our own.

Learning path

## Everything the Keyestudio 37 in 1 Sensor Kit can build

No built-in project uses only the parts in this box yet. The next section shows what to add.

Level up

## Add a few parts, unlock more projects

The smallest shopping lists that open the most new projects for the Keyestudio 37 in 1 Sensor Kit.

### Add Arduino Uno R3

Unlocks 51 more projects:

- EEPROM: memory that survives a reset
- Serial echo: the board repeats what you type
- Bluetooth chat
- Dusk switch
- Active buzzer
- Active buzzer module on pin 3
- and 45 more

### Add Resistor and Arduino Uno R3

Unlocks 91 more projects:

- EEPROM: memory that survives a reset
- Serial echo: the board repeats what you type
- Bluetooth chat
- Dusk switch
- Active buzzer
- Active buzzer module on pin 3
- and 85 more

### Add Pushbutton, Resistor and Arduino Uno R3

Unlocks 113 more projects:

- EEPROM: memory that survives a reset
- Serial echo: the board repeats what you type
- Bluetooth chat
- Dusk switch
- Active buzzer
- Active buzzer module on pin 3
- and 107 more

Two kits

## Projects that combine two kits

Own another kit as well? These need parts from both boxes, and neither can build them alone.

### With the Adafruit MetroX Classic Kit

76 projects:

- Bluetooth chat
- Dusk switch
- Active buzzer
- Active buzzer module on pin 3
- Alcohol sensor on A0
- and 71 more

### With the Vilros Arduino Uno 3 Ultimate Starter Kit

71 projects:

- Bluetooth chat
- Dusk switch
- Active buzzer
- Active buzzer module on pin 3
- Alcohol sensor on A0
- and 66 more

### With the Arduino Starter Kit

68 projects:

- Bluetooth chat
- Dusk switch
- Active buzzer
- Active buzzer module on pin 3
- Alcohol sensor on A0
- and 63 more

### With the ELEGOO UNO R3 Basic Starter Kit

68 projects:

- Bluetooth chat
- Dusk switch
- Alcohol sensor on A0
- Ambient light sensor on A0
- Button module on pin 3 lights the LED on 13
- and 63 more

In the box

## The kit’s parts, and what plays them here

The parts in the Keyestudio 37 in 1 Sensor Kit, by the names its maker gives them. Each one is in the editor’s parts panel.

- White and red LED modules LED With a resistor on a breadboard.
- 3W LED module Power LED, 1 W or 3 W star Switched by a MOSFET module, with a resistor to set its current.
- RGB LED module RGB LED
- Analog temperature module NTC temperature sensor module
- Photocell sensor Photoresistor sensor module
- Analog sound sensor Sound sensor, KY-038
- Analog rotation sensor Analog rotation sensor
- Passive buzzer Piezo speaker
- Digital buzzer Buzzer
- Digital push button Button module, KY-004
- Digital tilt sensor Tilt switch
- Photo interrupter Photo interrupter, slot
- Capacitive touch sensor Touch sensor, TTP223
- Knock sensor Knock sensor, KY-031
- Vibration sensor Vibration sensor, SW-420
- Hall magnetic sensor Hall sensor, A3144
- Line tracking sensor Line sensor, TCRT5000
- Infrared obstacle avoidance sensor Obstacle sensor, FC-51
- PIR motion sensor Motion sensor
- Flame sensor Flame sensor
- Analog gas sensor Gas sensor, MQ-2
- Analog alcohol sensor Alcohol sensor, MQ-3
- Digital IR transmitter KY-005 infrared LED module
- Digital IR receiver Infrared receiver, VS1838B
- Rotary encoder Rotary encoder, KY-040
- LM35 temperature sensor Temperature sensor, LM35
- 18B20 temperature sensor Temperature sensor, DS18B20
- ADXL345 accelerometer Accelerometer, ADXL345
- DHT11 temperature and humidity sensor Temperature and humidity, DHT22 Set to DHT11 in these circuits.
- Bluetooth module Bluetooth serial module, HC-05
- TEMT6000 ambient light sensor Ambient light sensor, TEMT6000
- SR01 ultrasonic sensor Ultrasonic ranger
- Joystick module Thumb stick
- DS3231 clock module Real-time clock, DS3231
- 5V relay module Relay module
- Vapor sensor Steam sensor

For the manual

## A link and a QR code for this page

Print either one beside a lesson, or tape it inside the box lid. Both open this page.

mokxi.com/k/keyestudio-37

The code is black on white with a quiet border, so it prints and scans at any size from 2 cm up.
Download the QR code (SVG)
Make kits? See what we offer kit makers.

FAQ

## Questions about this page

Is this made by Keyestudio?

No. Mokxi is independent and is not affiliated with Keyestudio. The page follows the kit’s lessons so you can use the two side by side; the circuits, sketches and explanations are Mokxi’s own.

Do I need the kit?

No. Every lesson that runs here runs in the browser, so you can try them before you buy a kit, or keep going while a part is missing or broken.

Is the code the same as in my manual?

The pins and the parts are the same, and the sketches use the same libraries where the kit does. The code itself is written for this page, with comments that explain each step, so it will not match the manual line for line.

What do "with a change" and "coming soon" mean?

A lesson marked "with a change" runs, but something differs from the kit, and the note under it says exactly what. "Coming soon" means we cannot simulate that lesson yet, and the note says why. We do not mark a lesson as running unless it does.

Is it free?

Yes. Every lesson on this page opens with no account. A free account saves your own copies of the circuits.

Keep going

## Other kits

Companion pages for more starter kits.

ELEGOO UNO R3 Super Starter Kit

25 lessons, 24 run in the browser

ELEGOO UNO R3 Most Complete Starter Kit

48 lessons, 44 run in the browser

Arduino Starter Kit

15 lessons, 15 run in the browser

Freenove Ultimate Starter Kit

42 lessons, 42 run in the browser

ELEGOO UNO R3 Basic Starter Kit

11 lessons, 10 run in the browser

SunFounder Starter Kit for Arduino Uno R3

23 lessons, 23 run in the browser

SunFounder Inventor Lab Kit

34 lessons, 33 run in the browser

REXQualis UNO R3 Super Starter Kit

22 lessons, 21 run in the browser

LAFVIN Super Starter Kit

28 lessons, 27 run in the browser

Freenove Ultimate Starter Kit for ESP32-WROVER

54 lessons, 44 run in the browser

SunFounder Kepler Kit for Raspberry Pi Pico W

63 lessons, 48 run in the browser

Freenove Ultimate Starter Kit for Raspberry Pi Pico

56 lessons, 50 run in the browser

keyestudio Super Starter Kit

Projects you can build with its parts

Vilros Arduino Uno 3 Ultimate Starter Kit

Projects you can build with its parts

SunFounder Universal Maker Sensor Kit

Projects you can build with its parts

SunFounder ESP32 Ultimate Starter Kit

Projects you can build with its parts

Adafruit MetroX Classic Kit

Projects you can build with its parts

MonkMakes Electronics Kit 1 for Raspberry Pi Pico

Projects you can build with its parts

Kitronik Discovery Kit for Raspberry Pi Pico

Projects you can build with its parts

Kitronik Inventor’s Kit for the Raspberry Pi Pico

Projects you can build with its parts

Keyestudio ESP32 Learning Kit Ultimate Edition

Projects you can build with its parts

## Start at lesson one

Every project opens in the editor with no account and nothing to install. Run it, change a number, run it again.

See the lessons
