Electric method can identify coffee strength and roast