test code for wall sensors