Comparator won't work

I am trying to make a "Zombies" map and you need five rotten flesh to open the door. I made hopper to put the items in the chest with a comparator to power the door. No matter how many items I put in the chest the comparator only sends a length of one to the redstone.
What can I do to fix this?
Best Answer
Assuming you're using a small (non-double) chest, try filling it like so:
Then set up your redstone roughly like this:
The comparator will output a signal with strength 1 if there are between 1 and 123 pieces of flesh in the chest, and strength 2 (or higher) if there are more. Putting 115 pieces of flesh in the chest means that five more pieces are needed to increase the strength. Once those five pieces are inserted, the repeater will activate, and power the door.
Pictures about "Comparator won't work"



How do you make a comparator work?
When placed, the comparator faces away from the player. The comparator has two miniature redstone torches at the back and one at the front. The back torches turn on when the comparator's output is greater than zero (the arrow on top also turns red).How do you activate a comparator in Minecraft?
-Unlike repeaters, comparators do not have an adjustable delay setting of 2-8 gameticks, they will always produce 2 gameticks of delay.What is Magnitude Comparator (Digital Comparator) | 1-bit, 2-bit and 4-bit Comparators Explained
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Kindel Media, Kindel Media, Kindel Media, Kindel Media