Tiny question google can't really answer

data is just a name. You can change it to whatever you like, as long as you change EVERY occurrence.

doggo = Serial.read();
  Serial.println(data);

doggo isn't defined.

char doggo = 0;
void setup() {
servoone.attach(6);
Serial.begin(9600);

}

void loop() {
 if(Serial.available() > 0);
 {
doggo = Serial.read();
  Serial.println(doggo );
  if(doggo == '1');

This snippet would compile, if it were complete.