Problems with combining two codes

Problems with combining two codes:

#arduino