A simulation of wireless parking lot with nesC and TOSSIM