b'CODE TO NOTEThe .attach(); method tells the servo object to which pin the signal wire is SERVO ATTACH: attached. It will send position signals myServo.attach(9); to this pin. In this sketch, pin 9 is used. Remember to only use digital pins that are capable of PWM.As shown in previous circuits, the analog pin values on your microcontroller vary from 0 to 1023. But what if we want those values to control a servo motor that only RANGE MAPPING: accepts a value from 0 to 180? The map() map(potPosition,0,1023,20,160); function takes a range of values and outputs a different range that can contain more or fewer values than the original. In this case, we are taking the range 01023 and mapping it to the range 20160.SERVO WRITE: The .write(); method moves the servo to a specified angle. In this example, the myServo.write(90); servo is being told to go to angle 90.CODING CHALLENGESREVERSE THE SERVO DIRECTION: Try making the servo move in the opposite direction of the potentiometer.CHANGE THE RANGE: Try altering the map function so that moving the potentiometer a lot only moves the servo a little or vice versa.SWAP IN A DIFFERENT SENSOR: Try swapping a light sensor in for the potentiometer. Then you can make a dial that reads how much light is present!58 : circuit 3a'