Design and development of MEMS based system for rapid detection