Indices start at zero and increase with each further value. That means that the second element in temperatures is at index 1.
temperatures
1
Make sure to type 1.