The sentence that is punctuated correctly is C: The aroma of Hershey's chocolate factory could be detected for miles.
A and B have a wrong use of the '
And D has a wrong use of quotation marks. It has the opening, but not the closing one. Also, since it is an indirect quote, it should have said:
She declared that Jane's soufflé should have won the blue ribbon.