What Is Conscience in the Bible?

Why do we have a conscience? Is it always a good idea to follow your conscience? What does the Bible say about the human conscience?