b'CODE TO NOTEThe analogWrite() function outputs a voltage between 0 and 5V on a pin. The function breaks the range ANALOG OUTPUT (PWM): between 0 and 5V into 255 little steps. Note that we are analogWrite(RedPin, 100); not turning the LED on to full brightness (255) in this code so that the night-light is not too bright. Feel free to change these values and see what happens.A nested if statement is one or more if statements NESTED IF STATEMENTS:nested inside of another if statement. If the parent if(logic statement){if statement is true, then the code looks at each of the if(logic statement){nested if statements and executes any that are true. If }the parent if statement is false, then none of the nested }statements will execute.MORE LOGICALThese if statements are checking for two conditions OPERATORS: by using the AND && operator. In this line, the if statement will only be true if the value of the variable (potentiometer > 0 &&potentiometer is greater than 0 AND if the value is less than or equal to 150. By using &&, the program allows the potentiometer <= 150)LED to have many color states.This is a definition of a simple function. When DEFINING A FUNCTION: programmers want to use many lines of code over and over again, they write a function. The code inside the void function_name(){curly brackets executes whenever the function is } called in the main program. Each of the colors for the RGB LED is defined in a function.This line calls a function that you have created. CALLING A FUNCTION: In a later circuit, you will learn how to make more function_name(); complicated functions that take data from the main program (these pieces of data are called parameters).34 : circuit 1d'