A hospital technician stole tens of thousands of pounds worth of medical equipment to sell on eBay, a court was told.