In this lesson you will learn how to write Python code on the Raspberry Pi which will turn on and turn off a Hue light bulb. The encode() method of the JSONEncoder class and the urlopen() method of the Request class will be used in the code. The light bulb will also be turned on and off in response to a change in humidity measured by the Sense HAT.