A court in Dehradun has sentenced a former Air Force personnel to 20 years of rigorous imprisonment for raping his minor daughter.