Reliable detection of objects with sensors