Thank you for playing! The guards aren't supposed to see you through walls, but they can hear you if you run or attack - or if you trigger an alarm! ;)
Actually, the guards can't hear you running any longer (they could during parts of development), I had to remove that feature just before deadline because it was still too buggy :P