Is there any way of making an if() statement that includes as a variable a servo position?
I've been trying to activate another part of my project only when my servo is at 180 degrees, however, an error pops up "Compilation error: could not convert 'servoMotor.Servo::write(180)' from 'void' to 'bool'".
I know there is a mistake because of the variable type, but I don't know how to correct it.