A method for identifying positions in which radiofrequency identification, RFID, tags (206a-206n) affixed to consumer products or containers in which ingredients used to form consumer products by a machine that provides consumer products to consumers are located, said method comprising: generating a radiofrequency, RF, signal at a certain power level; outputting the RF signal via at least one antenna disposed at each position of a set of positions at which the consumer products or containers are positioned; reading RFID signals produced by the RFID tags (206a-206n) in response to being energized by the RF signal, the RFID signals of different tags including (i) a unique product identifier and (ii) a unique RFID tag identifier, the RFID signals having a signal strength that enables measurement of received signal strength indicator, RSSI, values; recording, into a list, entries for each read RFID signal, the entries including (i) a corresponding unique RFID tag identifier, (ii) a corresponding measured RSSI value, and (iii) a corresponding position identifier indicating a position in the set of positions at which the corresponding measured RSSI value was gathered; and determining correct positions of each RFID tag by: identifying a highest RSSI value in the list; assigning the corresponding RFID tag identifier to a position based on the corresponding position identifier; removing, from the list, additional instances of the corresponding unique RFID tag identifier; and repeating identifying, assigning, and removing until each of the RFID tags are assigned to a position. generating a radiofrequency, RF, signal at a certain power level; outputting the RF signal via at least one antenna disposed at each position of a set of positions at which the consumer products or containers are positioned; reading RFID signals produced by the RFID tags (206a-206n) in response to being energized by the RF signal, the RFID signals of different tags including (i) a unique product identifier and (ii) a unique RFID tag identifier, the RFID signals having a signal strength that enables measurement of received signal strength indicator, RSSI, values; recording, into a list, entries for each read RFID signal, the entries including (i) a corresponding unique RFID tag identifier, (ii) a corresponding measured RSSI value, and (iii) a corresponding position identifier indicating a position in the set of positions at which the corresponding measured RSSI value was gathered; and determining correct positions of each RFID tag by: identifying a highest RSSI value in the list; assigning the corresponding RFID tag identifier to a position based on the corresponding position identifier; removing, from the list, additional instances of the corresponding unique RFID tag identifier; and repeating identifying, assigning, and removing until each of the RFID tags are assigned to a position. identifying a highest RSSI value in the list; assigning the corresponding RFID tag identifier to a position based on the corresponding position identifier; removing, from the list, additional instances of the corresponding unique RFID tag identifier; and repeating identifying, assigning, and removing until each of the RFID tags are assigned to a position.