Interfacing MPU6050 and flex sensor

Hi all,

I am currently working on a project that requires the use of multiple sensors to create, what in the end will be, a data glove. My MPU6050 has been calibrated successfully, and I have managed to smooth the data using a running average which have both been ok.

The problem I am having is integrating the flex sensor within the loop using sample code I got from the Sparkfun website. The MPU6050 data is printing into the serial monitor like it always has but the Flex sensor data won't show up at all.... I have attached the code to this post if anyone is able to help it would be greatly appreciated!

MPU6050_FLEX_DATA.ino (6.65 KB)

Try adding

#define USE_FLEX 1

.