added function to search for first temperature input