DIY Halloween Zombie Mask using ROHM Arduino Sensor Kit

arduino sensors

arduino sensors

Today, we will be creating a super easy Halloween zombie mask using the ROHM Sensor Evaluation Kit! We will be using ROHM Proximity/Ambient Light Sensor (PS/ALS) Sensor. The sensor will detect anything that moves in front of the mask and will light up in red to scare away your uninvited guests!

A guide to how to setup the sensor shield and connect to Arduino was covered in the previous article. If you haven’t already, please refer back to ROHM Sensor Evaluation Kit Overview!



Quick overview of ROHM Sensor Evaluation Kit

The Sensor Evaluation Kit comes with the Sensor Shield and 8 different ROHM sensors: an accelerometer, a barometric pressure sensor, a geomagnetic sensor, an ambient-light/proximity sensor, a color sensor, a hall-effect sensor, a temperature sensor, and an ultraviolet light sensor.  

arduino sensors

The website,, provides detailed documentation about the sensor shield and each of the sensors, along with links to downloadable Arduino libraries for the individual sensors. The user-manual for the kit, which comes in the box and can also be found on the website, and it provides instructions on using the sensor shield with the sensors.

arduino sensors

Figure 1. ROHM Sensor Shield (top right) with 8 different compatible sensors / @CoreStaff


Let’s make a Halloween zombie mask using the Proximity/Ambient Light Sensor!

So Halloween is just around the corner and I decided to make this scary Halloween mask!

arduino sensors

Figure 2. The Halloween zombie mask connected to ROHM sensor shield


Remember when I said that the sensor shield is great for prototyping sensor projects?  This project is a great demonstration of just that!  I want to make a Halloween decoration for my front door that lights up to scare people who walk near it.  The mask, a hacked light-up Halloween mask, will detect people using a proximity sensor, and will be based on the Arduino Uno!  First, however, I need to prototype my creation, and for this I’ll use the sensor shield with the Proximity/Ambient Light Sensor (PS/ALS module).  

Hardware Parts:


This project lights up an LED whenever an object is too close to the proximity sensor.

  • Mount the Sensor Shield to the Arduino’s female headers
  • Mount the PS/ALS Sensor module to any of the I2C header sections on the Sensor Shield
  • Upload this sketch to the Arduino:


The mask that I bought had LED strips around the eyes that lit up when a switch inside the mask was turned on.  The LED strips were connected to a battery case also inside the mask.  

arduino sensors

Figure 3. The power and ground wires for the LED strips came connected to a 4.5V battery case.


Since I decided to power the LEDs directly from the digital output pin of the Arduino, I removed the battery unit and desoldered its JST female connectors.

I then made a custom splitter that would allow me to connect the LED strips to a breadboard.  The splitter joined the positive and negative pins on each female connector together, and had two wires (one for positive voltage and one for ground) that I could then attach to a breadboard.


arduino sensors

Figure 4. The custom splitter to connect the LED strips to a breadboard


Finally, connect the positive and ground wires to digital pin 12 and to ground respectively.  Remember to use a 220Ω resistor to limit the current to the LEDs!  

arduino sensors

Figure 5. The breadboard connections


You are now ready to test your project!  Play with the value of “RPR0521RS_NEAR_THRESH” in the “RPR-0521RS.h” library file to change the threshold distance at which the proximity distance triggers.  


Once you are satisfied with the Sensor Shield prototype, you can finalize the project by mounting the proximity sensor to the front of the mask and drawing connections from the pins on the proximity sensor to the I2C inputs on the Sensor Shield.  

Place the mask by your front door and let your visitors enjoy a spooky and cool Halloween decoration! Have a happy and safe Halloween!  🙂