New user, need help fixing my code for Robotics final

My final project for robotics would be a door that closes and opens just by asking google to do so, but i keep getting the “particle” does not name a type:

Servo door;

void setup()
particle.variable("door", Servo door);
particle.subscribe("googleHome_open", doorOpen);

void doorOpen(const char *event, const char *data)

Please help me fix this issue and possibly make my code even better as this is my first time using a Particle Photon :slight_smile:

Look where your curly braces are in setup(). The call to Particle.variable and Particle.subscribe should be inside the closing brace, not outside. Also, note that Particle should be capitalized.