Barcode scanners do not use Wi-Fi. For connecting to the computer, they might use a keyboard or serial ports for wired connection or Bluetooth for wireless connection. For scanning the code, these scanners use light and convert light energy to electrical energy which further is converted into data.