Indices start at zero and increase with each further value. That means that the second element in temperatures is at index [1].

Make sure to pick [, followed by 1, and finally ].