Blynk with i2c Sensor and Adafruit ESP8266

Hello,

I’m trying to use an Adafruit Huzzah and i2c sensor (VCNL4010 Proximity Sensor) with the Blynk app. I’ve followed the example code and am connected to the blynk-cloud, but I’m not getting any data sent to the app. My code is below (I’ve taken out the auth token and Wifi settings):

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h>
#include "Adafruit_VCNL4010.h"
#include <SimpleTimer.h>


Adafruit_VCNL4010 vcnl;

SimpleTimer timer;

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "auth token";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "ssid";
char pass[] = "pw";

void sendMyData(){ 
    float prox = vcnl.readProximity();
    float light = vcnl.readAmbient(); 
    int new_prox = map(prox, 2150, 65536, 0, 1023);
    Blynk.virtualWrite(V3, new_prox);
}

void setup()
{
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
  timer.setInterval(1000L, sendMyData);
}


void loop(){
  //float prox = vcnl.readProximity();
  //float light = vcnl.readAmbient(); 
  //int new_prox = map(prox, 2150, 65536, 0, 1023);
  Blynk.run();
  timer.run();
}

Thanks in advance for your help!

Edit: I am now getting the “your ESP8266 is not in network” error message