Need help on how to approch 12v digital read on a blinking signal

this one is about the input reading it as 3 different values.
the other is in programing. once i read a pin normaly (digitalRead ) how do i get that to store as 3 different values.
2 treads-yes same project-yes
same thread no that one focus on 3 vars read and changed after read. this one 3 vars stored when read.
Could you help with either?