Farm-equipment maker Deere & Co. posted a 30% drop in fiscal second-quarter net income and lowered its full-year sales outlook as demand for its farm machinery continues to slump.

But the Moline, Ill.-based company’s stock rose 4.3% to $93.35 in 4 p.m. trading Friday as sales and profit exceeded Wall Street’s expectations, the latter in part on proceeds from the sale of the company’s crop-insurance business and lower overhead expenses.