The AONIR platform aims to achieve more efficient and sustainable food production. It consists of two main components: optical sensors based on near-infrared spectroscopy (NIRS) and an IoT platform. AONIR sensors will be able to provide the most characteristic parameters of food products online and in real time and will send them to a PLC for real-time decision-making and/or to an IoT platform for storage, visualization and generation of alarms. and reports related to the quality of food products.