How to store serial data to a variable for temperature data

Here I'm using HTS221 for temperature data capturing,I need 70 temp values in a array and i need to predict that for time series forecasting.

how it should look : array = 24,26,23,25,26.........28(total 70 values)

Installation and Troubleshooting is for Problems with the Arduino IDE itself NOT your project. It says so in the description of the section. Therefore I have moved your post here.

You might want to look at this How to get the best from this from this Forum before you proceed any further.

@suraj_s_1
Did you succeed with reading a single value from the sensor?
Please show the code