Partiot missile Project

if(c == 0){
pass = Serial.read();
if(pass == 1024){

Would you kindly explain how you intend to enter the character who's ASCII value is 1024 in the Serial Monitor?

While you are at it, kindly explain why you are not checking for there actually being data to read before you try to read it.