Artificial nose knows when fruit is ripe