I don't know what the context of this question is, but I'd leave out the 'value' part altogether. Sounds a bit strange, perhaps scientific to me.
I'd phrase it as 'What was the temperature?'
Your second option is incorrect, the word 'was' wouldn't go at the end of the sentence.