User blog comment:ShadowRezza/How would i set the computer so that i type in a password and the door to my house opens?/@comment-69.137.85.50-20120805000557

trust me, do this code exactly like me:

while true do

term.clear

term.setCursorPos(1, 1)

print("Please Enter Password")

input = read("*")

if input == "password" then

redstone.setOutput("back", true)

sleep(3)

redstone.setOutput("back", false)

end

end

thats it (this isnt part of the code) and on line 6, dont type "password" but your actual password in quotation marks.