Using the VL53L1X with Arduino involves wiring up the sensor to your Arduino-compatible microcontroller, installing the Adafruit VL53L1X library and running the provided example code.


Wire as shown for a 5V board like an UNO. If you are using a 3V board, like an Adafruit Metro, wire the board's 3V pin to the VL53L1X Vin.

  • Board 5V to sensor Vin
  • Board GND to sensor GND
  • Board SCL to sensor SCL
  • Board SDA to sensor SDA
  • Board 2 to sensor GPIO
  • Board 3 to sensor XSHUT

Library Installation

You can install the VL53L1X library for Arduino using the Library Manager in the Arduino IDE.

Click the Manage Libraries ... menu item, search for VL53L1X , and select the Adafruit VL53L1X library:

If asked about dependencies, click "Install all".

Load Example

Open up File -> Examples -> Adafruit VL53L1X -> VL53L1X_simpletest and upload to your Arduino wired to the sensor.

Upload the sketch to your board and open up the Serial Monitor (Tools -> Serial Monitor) at 115200 baud. You should see the the values from the senor being printed out.

This guide was first published on Oct 27, 2021. It was last updated on Oct 27, 2021.

This page (Arduino) was last updated on Oct 22, 2021.

Text editor powered by tinymce.