NesC code of occupancy motes