Previous reading

Added code to retrieve previous reading with current one