Your math appears correct, put a serial.println on line 149:
Serial.println(tensao_lambda);
See what you're getting.