In Nancy Drew: Midnight in Salem, Nancy must investigate the evidence room crime scene to figure out what was stolen. Talk to the Judge to ask for permission. He will deny it. Walk towards the evidence room and click on the keypad, then click on the door. Nancy will mention that she should call her dad to put in a good word for her to the Judge.
Call Carson. Then return to the Judge’s office. Along the way, Carson will call you back to let you know that you’re in. Talk to the Judge again, who gives his permission, but he cannot locate the pin code for the door. However, he welcomes you to search for it. Turn around and inspect the dresser. Click and drag around to find the yellow sticky note with a four-digit code.
Return to the evidence room door and click on the keypad. Press 0815 and the door will swing open.