Control Stopwatch via Sensor data

    flagA == 1;

Assignment or comparison ?