A food safety and traceability system based on RFID technology and internet of things