added flex sensor monitoring code