Carbon detector