Tofu that is going bad will develop a distinct sour odor. The edges will become curdled and mold may appear.