I hade my MPU6050 arrived today however It will not function

Ok so the VCC pin is connected to 5V, SCL is connected to A5 and SDL is connected to A4. The code is derived from the the code used by Nicholas Rehm on youtube for a vtol F35 stabilization computer, I simply modified it slightly as it didn't require the madgwick filter and such.