This detects vehicles magnetically with a coil http://www.siliconchip.com.au/cms/A_102998/article.html There are other options, depends on the actual application Could use broken beam/reflected beam, pressure sensor/air pipe, shadow etc -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist