Covid brain has struck!

if  (digitalRead(reset) == LOW)
        , digitalWrite(pin52) == HIGH);

the comma is outside the if condition making it part of the body of the if

but a "," used in that way is not valid

and presumably you didn't intend to make a comparison to HIGH and did intent the "HIGH" to be the 2nd argument to the digitalWrite (), setting pin52 to HIGH