Added ambient temp definition. Fixed serial bug.