updated scanner.c functions insert freezer and fridge