Time of Flight Sensor (VL53L0X) with RGB LED not working

This is probably a very simple fix but I new arduino and cannot figure it out. We are trying to get a proximity sensor to connect to an RGB led bulb. The goal is for when you are at a certain rage the bulb will be red and if you are not at the range the bulb will be green. Here is the code. I think it is getting stuck in " if( measure.RangeMilliMeter < 50)" statement. Thanks

// Adafruit_VL53L0X - Version: Latest
#include <Adafruit_VL53L0X.h>
#include <Wire.h>

//creating an object “lox” for the time of flight sensor
Adafruit_VL53L0X lox = Adafruit_VL53L0X();
int redPin = 10;
int greenPin = 11;
bool enter = true;

void setup() {
Serial.begin(9600);
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
// wait until serial port opens for native USB devices
while (! Serial) {
delay(3);
}

Serial.println(“Adafruit VL53L0X test”);
if (!lox.begin()) {
Serial.println(F(“Failed to boot VL53L0X”));
while(3);
}
// power
Serial.println(F(“VL53L0X API Simple Ranging example\n\n”));
}

void loop() {
measurements();
delay(10);
range_check();
delay(100);
}

void measurements() {
VL53L0X_RangingMeasurementData_t measure;

Serial.print("Reading a measurement… ");
lox.rangingTest(&measure, false); // pass in ‘true’ to get debug data printout!

if (measure.RangeStatus != 4) { // phase failures have incorrect data
Serial.print("Distance (mm): “); Serial.println(measure.RangeMilliMeter);
}
else {
Serial.println(” out of range ");
}
delay(10);
}

void range_check() {
VL53L0X_RangingMeasurementData_t measure;
if( measure.RangeMilliMeter < 50) {
setColor(255,0 ,0);
Serial.println(“test red”);

}
else {
setColor(0,255,0);
Serial.println(“test green”);
}

}

void setColor(int red, int green, int blue){
analogWrite(redPin, red);
analogWrite(greenPin, green);

}

void range_check()  {
  VL53L0X_RangingMeasurementData_t measure;
    if( measure.RangeMilliMeter < 50) {to

How are you getting data into “measure” here?

Please remember to use code tags when posting code.

  while (! Serial) {

Another major problem.