I am trying to read the last value from a temperature log, and then pass that to a function to determine next steps.
I can get the dataframe by querying the database;