Software debouncing in a servo motor using myoware muscle sensor

Hello sorry for that. I have made this

pls confirm if its right

#include <Servo.h>
int button = A3; //button pin, connect to ground to move servo
int press = 0;
Servo servo;
boolean toggle = true;

void setup()
{
pinMode(button, INPUT); //arduino monitor pin state

servo.attach(9); //pin for servo control signal
digitalWrite(12, HIGH); //enable pullups to make pin high
}

void loop()
{

press = digitalRead(analogRead(button>300));

if (press == LOW)
{
if(toggle)
{
servo.write(160);
toggle = !toggle;
}

else
{
servo.write(60);
toggle = !toggle;
}
}

delay(1000); //delay for debounce
}