Computer has USB port and Printer also have USB so I can connect printer into the USB port of computerThat doesn't answer the question of which computer port will read the sensor.
Computer has USB port and Printer also have USB so I can connect printer into the USB port of computerThat doesn't answer the question of which computer port will read the sensor.
Sorry I didn't understand you're questionComputer has USB port and Printer also have USB so I can connect printer into the USB port of computer
oh you're asking for sensorRS232 serial ports and parallel ports are rare or non-existent on most modern computers.
If you intend connecting the sensor via USB you will need to find one which has a USB output or else you will have to buy/build an interface to go between the sensor and the USB port.
What type of interface you'are talkingYou may also need some electronics to interface the (unknown) sensor to the microcontroller. Good luck with the project.