using arduino to recognise gestures

A flex sensor is just a variable resistor, so the code is just an analogRead function call. Just the same as if it were a pot.