MPU6050 Photon Issue

I am trying to connect my photon to the cloud with the following code. However, when I monitor the variables on the particle cli, they return a really large negative integer like -1231412412412412412421 for all three ax, ay, and az.

Can someone please help me. Thank you in advance.
Also, note that I am using the MPU6050 library.

I have wired my photon to MPU6050 properly:
D0 -> SDA
D1 -> SCL

#include "application.h"
#include "MPU6050/MPU6050.h"
MPU6050 accelgyro;
int16_t ax, ay, az;
int16_t gx, gy, gz;

// setup() runs once, when the device is first turned on.
void setup() {
  // Put initialization like pinMode and begin functions here.
  Particle.variable("ax", ax);
  Particle.variable("ay", ay);
  Particle.variable("az", az);

// loop() runs over and over again, as quickly as it can execute.
void loop() {
  // The core of your code will likely live here.
  accelgyro.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);


AFAIK int16_t isn’t supported as Particle.variable - it should be int

Try that and let us know whether this cured the problem.

i have some working code for a mpu 9250, which is almost the same device as the 6050 with a magnetometer i can read raw data and pitch/roll etc. I found the module seems to give the same results at 5v as 3.3v powered from the spark core regulated output.
int16_t ax, ay, az;
int16_t gx, gy, gz; works in my code, the library is
MPU6050(ver 1.0.3)

#include <I2Cdev.h>
#include <MPU6050.h>
#include <math.h> //( im also doing some other manipulation of the data).

im not sure how to copy code and post it, if you need it, i think it would work on the photon