sensor as an input to the parallel port
what multiplexer can i use to my 10 sensors? can i just connect it to pins D4-D7? D0-D3 are already used for my solenoid driver used to open the drawer. My project as a whole is like this, it is like an automated library. The user will login and borrow books using the computer. The books are placed individually in a drawer. Once a book inside that drawer is selected, the drawer will automatically open. There is a sensor placed on the drawer, if the user will get the book, the sensor will be cut. Once the sensor is cut, the database will be updated that, that book is unavailable already. Hope u'l have time to help me with this one. I'm already done with the drawer. my problem now is how to connect the sensor to the parallel port port which will serve as an input.