add check if data already in DB (for InnoDB) on callback PHP sensor.php