Setting GPIO4 as the default gpio

- Installing sudo modprobe w1-gpio and sudo modprobe w1-therm
- Checking that the thermometer is successfully installed
- Accessing the sensor ’28-0000095ea98a’
- Using ‘cat w1_slave’ to read the command
- Outputting the temperature

The temperatures that were outputted. In degrees Celsius and Fahrenheit.

Setup:
The 3V is connected to the positive rail
Ground pin is connected to the negative rail
The temperature sensor is connected to 3 different pins:
*Pin1is connected to the negative rail
*Pin 3 is connected to the positive rail
*Pin 2 is connected to Gpio4
A resistor is connected between pin 2 and a free row on the breadboard
The free row of the resistor is connected to the positive rail

